-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Clean up global rateLimitSeconds & fully shift to provider version
#2408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Not sure if this one needs a changeset or not. It's definitely a patch-level change, but doesn't really have anything that I think would warrant mention in the CHANGELOG. |
mrubens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Context
This PR bundles fixes & cleanup around
rateLimitSecondsafter https://github.com/RooVetGit/Roo-Code/pull/2376/files 🚢ed.Implementation
The first commit shifts things to be soley driven off of the provider-specific version of
rateLimitSecondsand can be found in 54b8e84. It also removes an unnecessary default value. This commit should have no user visible impact and is intended to make things more directly tied to the value's new location.The second makes a pass through things removing all of the references to the original global
rateLimitSecondswith the exception of the settings value itself since that needs to live on for now so that it can be migrated to the provider specific field 2151b5f. Afaik this commit should have no meaningful impact on the extension.Screenshots
No user visible changes are intended.
How to Test
(copied from #2376 (comment))
Set a rate-limit in the advanced section before updating to this code. Update and see that the value you set is copied over to all of your profiles. You can then go into each profile and change the values to something that makes sense for the specific provider. Once saved the value should be tied to the provider.
If no value is set before you update, e.g. 0s, that 0s value will be copied to all the profiles as well.
Get in Touch
rwmcfa1
/cc #2376 as realted
Important
Refactor to remove global
rateLimitSecondsand shift to provider-specific configuration.rateLimitSecondsfromroo-code-defaults.tsandClineProvider.ts.Cline.tsto useapiConfiguration?.rateLimitSecondsinstead of globalrateLimitSeconds.rateLimitSecondshandling fromwebviewMessageHandler.tsandExtensionStateContext.tsx.ExtensionMessage.tsandWebviewMessage.tsto removerateLimitSecondsreferences.ClineProvider.test.tsto remove tests related torateLimitSeconds.This description was created by
for 2151b5f. It will automatically update as commits are pushed.